package jdbmaplite.connection;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Properties;

public interface ConnectionFactory {

	/**
	 * Load Properties
	 * 
	 * @param properties
	 *            Properties
	 * @throws SQLException
	 */
	public void loadProperties(Properties properties) throws SQLException;

	/**
	 * Get Connection
	 * 
	 * @return Connection
	 * @throws SQLException
	 */
	public Connection getConnection() throws SQLException;

	/**
	 * Destroy
	 * 
	 * @throws SQLException
	 */
	public void destroy() throws SQLException;

}